Repository navigation
Show yt-dlp downloads as one steady progress bar - #18648
Merged
Merged
Conversation
YouTube's video arrives over HLS, whose first progress report reads 100% before any chunk lands, and yt-dlp then downloads the audio as a second stream that runs 0-100% again. The OSD showed each of those as-is. Fold the streams into one bar (video fills 90%, audio the rest), drop the bogus 100% while still downloading, and never move the bar backwards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Confidence Score: 5/5
[Low impact] The PR appears safe to merge. SummaryThe PR combines video and audio downloads into one forward-only progress bar.
Reviews (3) · Last reviewed commit: "Keep a stalled yt-dlp bar on screen and ..." · Reviewed by Greptile |
A stretch that doesn't advance the bar, such as a slow audio stream that moves it a point per 10%, now redraws every few seconds so the OSD's 8s timeout doesn't hide it. Throttle before folding the percent so a long HLS download doesn't fork per report, and assert the host asks yt-dlp for the stream and progress records the stub replays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Downloading a YouTube video from Chromium showed the progress bar jump to 100%, drop back to 0, climb again, then reset once more near the end.
omarchy-chromium-ytdlp-hostnow shows one bar:616+251is two streams) and tags each progress report with its stream and status.finishedreport.On the video that showed the problem, the bar now climbs steadily from 0 to 99 before the completion toast.
🤖 Generated with Claude Code